package com.yunqian.jwt;

import com.yunqian.redot.domain.Users;

public final class JwtUserFactory {

    private JwtUserFactory() {
    }

    public static JwtUser create(Users user) {
        return new JwtUser(
                user.getId(),
                user.getName(),
                user.getPassword(),
                user.getRealName(),
                user.getPhone(),
                user.getRoleId(),
                user.getStatus()
        );
    }

}